<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <script>
     const obj = Object.create(null,{
        name : {
            value : 'laowang',
            writable : false,
             //控制当前属性是否可以被修改,默认是false
            enumerable: false,
            //控制当前属性是否可以被枚举出来  默认false
            configurable:false
        }
     });
     console.log('obj',obj);

     console.log('修改obj的name值',(obj.name = "xiaoli"),obj);

     for (let key in obj) {
        console.log("枚举", key);
     }

     console.log("删除obj的name值", delete obj.name, obj);
   </script>
</body>
</html>